<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>怡臣 | 终极平台管理</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/Public/admin/adminlte/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="/Public/admin/adminlte/plugins/font-awesome/font-awesome.min.css">
    <!-- Ionicons -->
    <!--link rel="stylesheet" href="/Public/admin/adminlte/plugins/ionicons/ionicons.min.css"-->
    <!-- Theme style -->
    <link rel="stylesheet" href="/Public/admin/adminlte/dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="/Public/admin/adminlte/dist/css/skins/_all-skins.min.css">
    <!-- iCheck -->
    <link rel="stylesheet" href="/Public/admin/adminlte/plugins/iCheck/flat/blue.css">
    <!-- Morris chart -->
    <link rel="stylesheet" href="/Public/admin/adminlte/plugins/morris/morris.css">
    <!-- jvectormap -->
    <link rel="stylesheet" href="/Public/admin/adminlte/plugins/jvectormap/jquery-jvectormap-1.2.2.css">
    <!-- Date Picker -->
    <link rel="stylesheet" href="/Public/admin/adminlte/plugins/datepicker/datepicker3.css">
    <!-- Daterange picker -->
    <link rel="stylesheet" href="/Public/admin/adminlte/plugins/daterangepicker/daterangepicker.css">
    <!-- bootstrap wysihtml5 - text editor -->
    <link rel="stylesheet" href="/Public/admin/adminlte/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
    <link rel="stylesheet" href="/Public/admin/css/common.css">
	<script src="/Public/admin/adminlte/plugins/jQuery/jquery-2.2.3.min.js"></script>
    <script src="/Public/admin/js/jquery.validate.min.js"></script>
    <script src="/Public/admin/js/jquery.validate.config.js"></script>
    <script src="/Public/admin/js/common.js?v=20170331001"></script>
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="/Public/admin/adminlte/plugins/html5shiv/html5shiv.min.js"></script>
    <script src="/Public/admin/adminlte/plugins/html5shiv/respond.min.js"></script>
    <![endif]-->
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

    <header class="main-header">
        <!-- Logo -->
        <a href="" class="logo">
            <span class="logo-mini"><b>怡臣</b></span>
            <span class="logo-lg"><b>怡臣终极平台</b>管理</span>
        </a>
        <nav class="navbar navbar-static-top">
            <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="/Public/admin/adminlte/dist/img/pingtai-face.png" class="user-image" alt="User Image">
                            <span class="hidden-xs"><?php echo session('manageInfo')['login_name'];?></span>
                        </a>
                    </li>
                    <li class="dropdown notifications-menu">
                        <a href="/Manage/login/loginOut" class="dropdown-toggle">
                            <i class="fa fa-bell-o">退出</i>
                            <span class="label label-warning">~</span>
                        </a>
                    </li>
                </ul>
            </div>
        </nav>
    </header>

<!-- Left logo -->
<?php
if (session('manageInfo')['account_id'] == 1) { ?>
<aside class="main-sidebar">
    <section class="sidebar">
        <!-- 导航页面 -->
        <ul class="sidebar-menu">
            <li class="treeview <?php if(CONTROLLER_NAME == index): ?>active<?php endif; ?>">
                <a href="javascript:;">
                    <i class="fa fa-dashboard"></i> <span>首页管理</span>
                    <span class="pull-right-container">
                      <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li class="active"><a href="<?php echo U('manage/index/index');?>"><i class="fa fa-circle-o"></i> 首页</a></li>
                </ul>
            </li>
            <li class="<?php echo CONTROLLER_NAME == 'Weixin' ? 'active' : ''; ?>">
                <a href="javascript:;">
                    <i class="fa fa-th"></i>
                    <span>微信设置</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li class="<?php if(ACTION_NAME == twoDBarcode): ?>active<?php endif; ?>"><a href="<?php echo U('Weixin/twoDBarcode');?>"><i class="fa fa-circle-o"></i> 二维码列表</a></li>
                </ul>
                <ul class="treeview-menu">
                    <li class="<?php if(ACTION_NAME == wxInformation): ?>active<?php endif; ?>">
                        <a href="<?php echo U('Weixin/wxInformation');?>"><i class="fa fa-circle-o"></i> 微信消息模板列表</a>
                    </li>
                </ul>
            </li>
            <li class="<?php echo CONTROLLER_NAME == 'Letter' ? 'active' : ''; ?>">
                <a href="javascript:;">
                    <i class="fa fa-th"></i> <span>短信管理</span>
                    <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                </a>
                <ul class="treeview-menu">
                    <li class="<?php if(ACTION_NAME == index): ?>active<?php endif; ?>"><a href="<?php echo U('Letter/index');?>"><i class="fa fa-circle-o"></i> 短信模板</a></li>
                </ul>
            </li>

            <li class="treeview <?php if(CONTROLLER_NAME == Purchase): ?>active<?php endif; ?>">
                <a href="javascript:;">
                    <i class="fa fa-th"></i>
                    <span>采购</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li class="<?php if(ACTION_NAME == index): ?>active<?php endif; ?>"><a href="<?php echo U('purchase/index');?>"><i class="fa fa-circle-o"></i> 采购单列表</a></li>
                    <li class="<?php if(ACTION_NAME == setup): ?>active<?php endif; ?>"><a href="<?php echo U('purchase/setup');?>"><i class="fa fa-circle-o"></i> 可采购商品配置</a></li>
                    <li class="<?php if(ACTION_NAME == stores or ACTION_NAME == store_setup): ?>active<?php endif; ?>"><a href="<?php echo U('purchase/stores');?>"><i class="fa fa-circle-o"></i> 店铺可采购商品配置</a></li>
                </ul>
            </li>
            <li class="treeview <?php if(CONTROLLER_NAME == Vendor): ?>active<?php endif; ?>">
                <a href="javascript:;">
                    <i class="fa fa-th"></i> <span>供应商</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li class="<?php if(ACTION_NAME == index): ?>active<?php endif; ?>"><a href="<?php echo U('manage/vendor/index');?>"><i class="fa fa-circle-o"></i>供应商档案</a></li>
                </ul>
            </li>
            <li class="treeview <?php if(CONTROLLER_NAME == Goods or CONTROLLER_NAME == GoodsCat): ?>active<?php endif; ?>">
                <a href="javascript:;">
                    <i class="fa fa-laptop"></i>
                    <span>商品</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="<?php echo U('manage/GoodsCat/index');?>"><i class="fa fa-circle-o"></i> 总分类</a></li>
                    <li><a href="<?php echo U('manage/Goods/index');?>" ><i class="fa fa-circle-o"></i> 基础商品库</a></li>
                </ul>
            </li>
            <li class="treeview">
                <a href="javascript:;">
                    <i class="fa fa-edit"></i> <span>订单</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu <?php if(CONTROLLER_NAME == Orders): ?>active<?php endif; ?>">
                    <li><a href="<?php echo U('Orders/orderList');?>"><i class="fa fa-circle-o"></i> 所有订单</a></li>
                </ul>
            </li>
            <li class="treeview <?php if(CONTROLLER_NAME == Special): ?>active<?php endif; ?>">
                <a href="javascript:;">
                    <i class="fa fa-table"></i> <span>营销</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="<?php echo U('special/index');?>"><i class="fa fa-circle-o"></i> 专题模板</a></li>
                    <li><a href="<?php echo U('Feedback/index');?>"><i class="fa fa-circle-o"></i> 投诉与建议</a></li>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="fa fa-calendar"></i> <span>统计</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>                
                </a>
                <ul class="treeview-menu">
                    <li><a href=""><i class="fa fa-circle-o"></i> 销售统计</a></li>
                    <li><a href=""><i class="fa fa-circle-o"></i> 会员统计</a></li>
                    <li><a href=""><i class="fa fa-circle-o"></i> 订单统计</a></li>
                </ul>
            </li>
            <li class="<?php echo CONTROLLER_NAME == 'Rbac' ? 'active' : ''; ?>">
                <a href="javascript:;">
                    <i class="fa fa-envelope"></i> <span>权限</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="/manage/rbac/user"><i class="fa fa-circle-o"></i> 帐户</a></li>
                    <li><a href="/manage/rbac/role"><i class="fa fa-circle-o"></i> 角色</a></li>
                    <li><a href="/manage/rbac/menu"><i class="fa fa-circle-o"></i> 菜单</a></li>
                </ul>
            </li>
            <li class="treeview <?php echo (CONTROLLER_NAME == 'Store' or CONTROLLER_NAME == 'Dly') ? 'active' : ''; ?>">
                <a href="javascript:;">
                    <i class="fa fa-folder"></i> <span>店铺</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="/manage/store/index"><i class="fa fa-circle-o"></i> 店铺管理</a></li>
                    <li><a href="/manage/store/shelves"><i class="fa fa-circle-o"></i> 可上架商品管理</a></li>
                    <li><a href="/manage/Dly/index"><i class="fa fa-circle-o"></i> 店铺物流公司</a></li>
                </ul>
            </li>
            <li class="treeview <?php if(CONTROLLER_NAME == Refund or CONTROLLER_NAME == Feedback): ?>active<?php endif; ?>">
                <a href="javascript:;">
                    <i class="fa fa-th"></i> <span>售后</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li class="<?php if(ACTION_NAME == index): ?>active<?php endif; ?>"><a href="<?php echo U('Refund/index',array('view'=>1));?>"><i class="fa fa-circle-o"></i> 退款退货</a></li>
                    <li class=""><a href=""><i class="fa fa-circle-o"></i> 投诉</a></li>
                </ul>
            </li>
            <li class="treeview">
                <a href="<?php echo U('User/index');?>">
                    <i class="fa fa-share"></i> <span>会员</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="<?php echo U('User/index');?>"><i class="fa fa-circle-o"></i> 会员列表</a></li>
                    <li><a href="<?php echo U('User/tempUser');?>"><i class="fa fa-circle-o"></i> 游客列表</a></li>
                </ul>
            </li>
            <li class="treeview <?php if(CONTROLLER_NAME == Bonus): ?>active<?php endif; ?>">
                <a href="javascript:;">
                    <i class="fa fa-th"></i>
                    <span>奖金</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li class="<?php if(ACTION_NAME == index): ?>active<?php endif; ?>"><a href="<?php echo U('Bonus/index');?>"><i class="fa fa-circle-o"></i>奖金流水列表</a></li>
                </ul>
            </li>
            <li class="header">财务</li>
            <li><a href="<?php echo U('Bills/index');?>"><i class="fa fa-circle-o text-red"></i> <span>店铺结算账单</span></a></li>
            <!--<li><a href="#"><i class="fa fa-circle-o text-yellow"></i> <span>备注2</span></a></li>
            <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> <span>备注3</span></a></li>-->


        </ul>
    </section>
    <!-- /.sidebar -->
</aside>

<?php
}else{ ?>

<aside class="main-sidebar">
    <section class="sidebar">
        <!-- 导航页面 -->
        <ul class="sidebar-menu">

            <?php
 foreach ($nav_menu as $k=>$v) { switch ($k) { case 0: $iClass = 'fa-dashboard'; break; case 1: $iClass = 'fa-th'; break; case 2: $iClass = 'fa-laptop'; break; case 3: $iClass = 'fa-edit'; break; case 4: $iClass = 'fa-table'; break; case 5: $iClass = 'fa-folder'; break; default: $iClass = 'fa-dashboard'; } ?>
            <li class="treeview">
                <a href="#">
                    <i class="fa <?php echo $iClass; ?>"></i> <span><?php echo $v['name'];?></span>
                    <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                </a>
                <ul class="treeview-menu">
                    <?php
 foreach ($menu as $value) { if($v['id'] == $value['nav_menu_id']) { ?>
                    <li><a href="<?php echo $value['value']; ?>"><i class="fa fa-circle-o"></i> <?php echo $value['name']?></a></li>
                    <?php }} ?>
                </ul>
            </li>
            <?php } ?>
        </ul>
         <script type="text/javascript">
			var curHref = window.location.href.toLowerCase();
			$(".sidebar-menu .treeview-menu a").each(function(){
				if(curHref.indexOf($(this).attr("href").toLowerCase()) != -1){
					$(this).parents(".treeview").addClass("active");
					$(this).parent().addClass("active");
				}	
			});
		</script>
    </section>
    <!-- /.sidebar -->
</aside>
<?php } ?>

<!-- 内容页 -->
<div class="content-wrapper">
    <!-- 面包屑 -->
    <section class="content-header">
        <h1>
            门店订单
            <small>订单详细</small>
        </h1>

    </section>

    <!-- 内容 -->

    <section class="content"><div class="row"><div class="col-md-12"><div class="nav-tabs-custom">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#tab_0" data-toggle="tab">订单详情</a></li>
            <li><a href="<?php echo U('orders/orderMark',array('id'=>$orDetail['product'][0]['order_id']));?>" >订单备注</a></li>
            <li><a href="<?php echo U('orders/orderLog',array('id'=>$orDetail['product'][0]['order_id']));?>" >订单日志</a></li>
            <li class="pull-right header">
            </li></ul>
        <div class="tab-content">
            <div class="tab-pane active" id="tab_0">
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">编辑：订单号[<?php echo ($orDetail['product'][0]['order_id']); ?>]</h3>

                        <div class="box-tools">


                            <div class="btn-group pull-right" style="margin-right: 10px">
                                <a href="<?php echo U('/Manage/Orders/orderList',['view'=>I('view')]);?>"  class="btn btn-sm btn-warning item_delete"><i class="fa fa-list"></i>&nbsp;返回上一页</a>
                            </div>
                        </div>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->

                        <div class="box-body">

                            <div class="form-group">



                                <table class="table table-hover" style="margin-left: 10px; width: 99%;">
                                    <tbody>
                                    <tr>
                                        <th>商品货号</th>
                                        <th>货品名称</th>
                                        <th>商品条形码</th>
                                        <th>已发货量</th>
                                        <th>单价</th>
                                        <th>购买数量</th>
                                        <th>合计金额</th>
                                    </tr>

                                <?php if(is_array($orDetail["product"])): $i = 0; $__LIST__ = $orDetail["product"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?><tr>
                                        <td><?php echo ($item["bn"]); ?></td>
                                        <td><?php echo ($item["name"]); ?></td>
                                        <td><?php echo ($item["barcode"]); ?></td>
                                        <td><?php echo ($item["sendnum"]); ?></td>
                                        <td>￥<?php echo (number_format($item["price"], 2, '.', '')); ?></td>
                                        <td><?php echo ($item["nums"]); ?></td>
                                        <td>￥<?php echo (number_format($item["amount"], 2, '.', '')); ?> </td>

                                    </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                                    </tbody></table>


                                <div class="box-footer"></div>

                            </div>


                            <?php if($isrefund != NULL): ?><div class="form-group">


                                    <div class="box-header with-border">
                                        <h3 class="box-title" style="color: #ff0000">[客户申请（发货前：退款）]</h3>
                                    </div>
                                    <table class="table table-hover" style="margin-left: 10px; width: 99%;">
                                        <tbody>
                                        <tr>
                                            <th>&nbsp;</th>
                                            <th>商品货号</th>
                                            <th>货品名称</th>
                                            <th>商品条形码</th>
                                            <th>已发货量</th>
                                            <th>单价</th>
                                            <th>购买数量</th>
                                            <th>申请退款|退货退款数量</th>
                                        </tr>

                                        <?php if(is_array($isrefund)): $i = 0; $__LIST__ = $isrefund;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?><tr>
                                                <td><?php echo ($item["istype"]); ?></td>
                                                <td><?php echo ($item["bn"]); ?></td>
                                                <td><?php echo ($item["name"]); ?></td>
                                                <td><?php echo ($item["barcode"]); ?></td>
                                                <td><?php echo ($item["sendnum"]); ?></td>
                                                <td>￥<?php echo (number_format($item["price"], 2, '.', '')); ?></td>
                                                <td><?php echo ($item["nums"]); ?></td>
                                                <td><?php echo ($item["num"]); ?></td>
                                            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                                        <tr>
                                            <td colspan="7"><h4 style="color: #FF0000;">退款金额:￥<?php echo (number_format($item["backprice"], 2, '.', '')); ?></h4> </td>
                                        </tr>
                                        </tbody></table>


                                    <div class="box-footer"></div>

                                </div><?php endif; ?>

                            <?php if($isrefundtwo != NULL): ?><div class="form-group">


                                    <div class="box-header with-border">
                                        <h3 class="box-title" style="color: #ff0000">[客户申请（发货后退款商品）]</h3>
                                    </div>
                                    <table class="table table-hover" style="margin-left: 10px; width: 99%;">
                                        <tbody>
                                        <tr>
                                            <th>&nbsp;</th>
                                            <th>商品货号</th>
                                            <th>货品名称</th>
                                            <th>商品条形码</th>
                                            <th>已发货量</th>
                                            <th>单价</th>
                                            <th>购买数量</th>
                                            <th>申请退款|退货退款数量</th>
                                        </tr>

                                        <?php if(is_array($isrefundtwo)): $i = 0; $__LIST__ = $isrefundtwo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?><tr>
                                                <td><?php echo ($item["istype"]); ?></td>
                                                <td><?php echo ($item["bn"]); ?></td>
                                                <td><?php echo ($item["name"]); ?></td>
                                                <td><?php echo ($item["barcode"]); ?></td>
                                                <td><?php echo ($item["sendnum"]); ?></td>
                                                <td>￥<?php echo (number_format($item["price"], 2, '.', '')); ?></td>
                                                <td><?php echo ($item["nums"]); ?></td>
                                                <td><?php echo ($item["num"]); ?></td>

                                            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                                        <tr>
                                            <td colspan="7"><h4 style="color: #FF0000;">退款金额:￥<?php echo (number_format($item["backprice"], 2, '.', '')); ?></h4> </td>
                                        </tr>
                                        </tbody></table>


                                    <div class="box-footer"></div>

                                </div><?php endif; ?>

                            <?php if($isrefundtree != NULL): ?><div class="form-group">


                                    <div class="box-header with-border">
                                        <h3 class="box-title" style="color: #ff0000">[客户申请（退货退款商品）]</h3>
                                    </div>
                                    <table class="table table-hover" style="margin-left: 10px; width: 99%;">
                                        <tbody>
                                        <tr>
                                            <th>&nbsp;</th>
                                            <th>商品货号</th>
                                            <th>货品名称</th>
                                            <th>商品条形码</th>
                                            <th>已发货量</th>
                                            <th>单价</th>
                                            <th>购买数量</th>
                                            <th>申请退款|退货退款数量</th>

                                        </tr>

                                        <?php if(is_array($isrefundtree)): $i = 0; $__LIST__ = $isrefundtree;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?><tr>
                                                <td><?php echo ($item["istype"]); ?></td>
                                                <td><?php echo ($item["bn"]); ?></td>
                                                <td><?php echo ($item["name"]); ?></td>
                                                <td><?php echo ($item["barcode"]); ?></td>
                                                <td><?php echo ($item["sendnum"]); ?></td>
                                                <td>￥<?php echo (number_format($item["price"], 2, '.', '')); ?></td>
                                                <td><?php echo ($item["nums"]); ?></td>
                                                <td><?php echo ($item["num"]); ?></td>

                                            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                                        <tr>
                                            <td colspan="7"><h4 style="color: #FF0000;">退款金额:￥<?php echo (number_format($item["backprice"], 2, '.', '')); ?></h4> </td>
                                        </tr>
                                        </tbody></table>


                                    <div class="box-footer"></div>

                                </div><?php endif; ?>



                            <div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
                                <div class="row"><div class="col-sm-6"></div><div class="col-sm-6"></div></div>
                                <div class="row"><div class="col-sm-12">
                   <table id="example2" class="table table-bordered table-hover dataTable" role="grid" aria-describedby="example2_info">
                                <thead>
                                <tr role="row">
                                    <th class="sorting_asc" tabindex="0"  rowspan="1" colspan="1">商品价格</th>
                                    <th class="sorting" tabindex="0" rowspan="1" colspan="1" >订单其他信息</th>
                                    <th class="sorting" tabindex="0" rowspan="1" colspan="1" >收货人信息</th>

                                </thead>
                                <tbody>


                                <tr role="row" class="odd">
                                    <td class="sorting_1">商品总额 :￥<?php echo (number_format($orDetail['detail']['cost_item'], 2, '.', '')); ?></td>
                                    <td>配送方式：<?php echo ($orDetail['product'][0]['shipping']); ?></td>
                                    <td>姓名:<?php echo ($orDetail['detail']['ship_name']); ?></td>
                                </tr>
                                <tr role="row" class="odd">
                                    <td class="sorting_1">配送费用 ：￥<?php echo (number_format($orDetail['detail']['cost_freight'], 2, '.', '')); ?></td>
                                    <td>商品重量：<?php echo ($orDetail['detail']['weight']); ?></td>
                                    <td>手机:<?php echo ($orDetail['detail']['ship_mobile']); ?></td>

                                </tr>
                                <tr role="row" class="odd">
                                    <td class="sorting_1">优惠抵扣金额 ：￥<?php echo (number_format($orDetail['detail']['youhui'], 2, '.', '')); ?></td>
                                    <td>支付方式:<?php echo ($orDetail['detail']['payment']); ?><span style="color: #FF0000">[<?php echo ($orDetail['detail']['is_zhifu']); ?>]</span></td>
                                    <td>地区:<?php echo ($orDetail['detail']['ship_area']); ?></td>

                                </tr>
                                <tr role="row" class="odd">
                                    <td class="sorting_1">奖金抵扣金额 : ￥<?php echo (number_format($orDetail['detail']['bonus_pay'], 2, '.', '')); ?></td>
                                    <td></td>
                                    <td>地址:<?php echo ($orDetail['product'][0]['ship_addr']); ?></td>

                                </tr>
                                <tr role="row" class="odd">
                                    <td class="sorting_1">订单总额 : ￥<?php echo (number_format($orDetail['detail']['total_amount'], 2, '.', '')); ?></td>
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr role="row" class="odd">
                                    <!--<td class="sorting_1">已支付金额 : ￥<?php echo (number_format($orDetail['detail']['payed'], 2, '.', '')); ?></td>
                                    <td></td>-->
                                    <td colspan="3">发货日期：<?php echo ($orDetail['detail']['ship_time']); ?></td>
                                </tr>
                                <tr role="row" class="odd">

                                    <td colspan="3">客户下单附言:<?php echo ($orDetail['detail']['memo']); ?></td>
                                </tr>



                                </tbody>
                                <tfoot>

                                </tfoot>
                            </table></div></div></div>


                        </div>


                        <!-- /.box-body -->

                        <!-- /.box-footer -->

                </div>


            </div>
            <div class="tab-pane " id="tab_1">


                <form action="remarkOrder" method="post" accept-charset="UTF-8" class="form-horizontal" pjax-container="">


                    <div class="box-body">

                        <div class="form-group 1">


                            <table class="table table-hover" style="margin-left: 10px; width: 99%;">
                                <tbody>
                                <tr>
                                    <th>备注操作员</th>
                                    <th>备注内容</th>
                                    <th>时间</th>
                                </tr>



                                </tbody></table>


                            <label for="text" class="col-sm-2 control-label">订单备注：</label>

                            <div class="col-sm-6">
                                <textarea id="text" name="mark" class="form-control" rows="10" placeholder="备注"></textarea>
                                <input type="hidden" value="<?php echo ($orDetail['product'][0]['order_id']); ?>"  name='order_id'>
                            </div>
                        </div>


                    </div>
                    <!-- /.box-body -->
                    <div class="box-footer">
                      <div class="col-sm-2">

                    </div>
                        <div class="col-sm-6">

                            <div class="btn-group pull-right">
                                <button type="submit" class="btn btn-info pull-right">保存</button>
                            </div>

                            <div class="btn-group pull-left">
                                <input type="reset" class="btn btn-warning" value="清空">
                            </div>

                        </div>

                    </div>
                    <!-- /.box-footer -->
                </form>



            </div>




        </div>
    </div></div></div>

    </section>




</div>
<!-- 底部 -->
<!--include file="Public/foot" /-->
<footer class="main-footer">
    <div class="pull-right hidden-xs">
        <b>Version</b> 3.0
    </div>
    <strong>Copyright &copy; 2016-2018 <a href="#">怡臣</a>.</strong> All rights
    reserved.
</footer>
</div>
<!-- Bootstrap 3.3.6 -->
<script src="/Public/admin/adminlte/bootstrap/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="/Public/admin/adminlte/dist/js/app.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="/Public/admin/adminlte/dist/js/demo.js"></script>
<script data-exec-on-popstate>
    $('.grid-refresh').click(function () {
        window.location.reload();
    });
    $('.gobackpage').click(function () {
        window.history.back();
    })
</script>
</body>
</html>



<script data-exec-on-popstate>

    $(function () {

        $('.grid-select-all').change(function() {
            if (this.checked) {
                $('.grid-item').prop("checked", true);
            } else {
                $('.grid-item').prop("checked", false);
            }
        });

        $('.batch-delete').on('click', function() {
            var selected = [];
            $('.grid-item:checked').each(function(){
                selected.push($(this).data('id'));
            });

            if (selected.length == 0) {
                return;
            }

            if(confirm("Are you sure to delete this item ?")) {
                $.post('/admin/auth/roles/' + selected.join(), {_method:'delete','_token':'ALpaP7hXZ6s2dnAdE02Z6mUSHPt8RkYbcDRp6rpw'}, function(data){
                    $.pjax.reload('#pjax-container');
                    noty({
                        text: "<strong>Succeeded!</strong>",
                        type:'success',
                        timeout: 1000
                    });
                });
            }
        });
    });
</script>